fmin
From cppreference.com
| Defined in header <math.h>
|
||
| float fminf( float x, float y ); |
(since C99) | |
| double fmin( double x, double y ); |
(since C99) | |
| long double fminl( long double x, long double y ); |
(since C99) | |
Returns the smaller of two floating point arguments.
If one of the arguments is NaN, this function returns the other argument. If both arguments are NaNs, the function returns NaN.
Contents |
[edit] Parameters
| x, y | - | floating point values |
[edit] Return value
The smaller of two floating point values.
[edit] Example
Run this code
Possible output:
fmin(2.0,1.0) = 1.0 fmin(NAN,1.0) = 1.0
[edit] See also
| (C99) |
larger of two floating point values (function) |
| C++ documentation for fmin
| |